import { defineStore } from "pinia";
const useIndexStore = defineStore("index", {
  state: () => {
    return {
      navCollapse: false,
      centerDialog:false
    };
  },
  actions: {
    toggleNavState() {
      this.navCollapse = !this.navCollapse
      
    },
    toggleCenterDialog() {
      this.centerDialog = !this.centerDialog
    }
   },
  // persist: true
});

export default useIndexStore;
